<template>
    <div>
        <!-- 轮播图组件 -->
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white" >
            <van-swipe-item v-for="item in bannerArr" :key="item.id">
                <img :src="item.image_url" alt="">
            </van-swipe-item>
            
        </van-swipe>
    </div>
</template>

<script>

export default {
    name: '',
    data() {
        return {

        };
    },
    props:['bannerArr']


}

</script>
<style scoped lang="less">
.my-swipe {
    img {
        width: 100%;
        height: auto;
        display: block;
    }
}
</style>